home *** CD-ROM | disk | FTP | other *** search
/ Chip 2001 December / Chip_2001-12_cd1.bin / zkuste / tuning / download / xteq / setup.exe / {app} / plugins / XQ Win2K TCPIP Sec 4.xpl < prev    next >
Text File  |  2001-05-08  |  2KB  |  53 lines

  1. "FILE"="Xteq Systems X-Setup Plugin 6.0"
  2. "TYPE"="2"
  3. "COUNT"="1"
  4. "UIPATH"="Network\TCP/IP Hardening
  5. "NAME"="Keep Alive Time"
  6. "OSVERSION"="000101"
  7. "WARNING"="1"
  8. "VERSION"="1.00"
  9. "LANGUAGE"="VBScript"
  10. "TEXT 1"="Time (s)"
  11. "DESCRIPTION 1"="Especially if this computer is used as an HTTP/1.1 server, many clients will request an keep alive connection."
  12. "DESCRIPTION 2"="This setting controls how often the server should check if an idle connection is still "alive" by sending a single TCP/IP packet to the client."
  13. "DESCRIPTION 3"="If the client does not react on this keep alive packet, the keep alive connection is freed and thus freeing resources."
  14. "DESCRIPTION 4"="The default value is 7200 seconds (two hours), a good value is 600 seconds(10 minutes)."
  15. "DESCRIPTION 5"="To restore the system default value, clear the field."
  16. "AUTHOR"="Xteq Systems"
  17. "CONTACTURL"="http://www.xteq.com/"
  18. "COPYRIGHT"="Copyright ⌐ Xteq Systems - All Rights Reserved"
  19. "COMMENT 1"=" "
  20.  
  21.  
  22. sP="HKLM\System\CurrentControlSet\Services\TcpIp\Parameters\KeepAliveTime"
  23.  
  24. Sub Plugin_Initialize 
  25.  if RegValueExists(sP) then
  26.     s=RegReadValue(sP)
  27.     if IsNumeric(s) then
  28.        i=s/1000
  29.        SetUIElement 1,i
  30.     end if
  31.  end if
  32. End Sub
  33.  
  34. Sub Plugin_CheckData(ElementIndex)
  35. End Sub
  36.  
  37. Sub Plugin_Apply(ElementIndex,ElementSubIndex)
  38.  s=GetUIElement(1)
  39.  if len(s)=0 then
  40.     If RegValueExists(sP) then RegDeleteValue(sP)
  41.  else
  42.     i=s*1000
  43.     Call RegWriteValue(sP,i,2)
  44.  end if
  45.  
  46.  
  47.  Call Restart()
  48. End Sub
  49.  
  50. Sub Plugin_Terminate 
  51. End Sub
  52.  
  53.